package com.ph.irp.stock.dao;

import java.util.List;

import com.ph.irp.model.PStockOrderdetail;

public interface StockOrderDetailDao {
	
	/**
	 * 新增采购价格明细
	 * @param stockOrderDetail 采购价格明细model
	 * @throws Throwable 抛出异常
	 */
	void addStockOrderDetail(PStockOrderdetail stockOrderDetail)throws Throwable;
	
	/**
	 * 修改采购价格明细
	 * @param stockOrderDetail 采购价格明细model
	 * @throws Throwable 抛出异常
	 */
    void editStockOrderDetail(PStockOrderdetail stockOrderDetail)throws Throwable ;
    
    /**
     * 删除销售价格明细，可删多条
     * @param ids 要删除的采购价格明细的id
     * @throws Throwable抛出异常
     */
    void deleteStockOrderDetail(String[] ids)throws Throwable;
     
    /**
     * 根据采购订单查询其明细
     * @param stockOrderId 采购订单明细
     * @return
     * @throws Throwable
     */
    List<PStockOrderdetail> getStockOrderDetailsByStockOrderId(int stockOrderId)throws Throwable ;

}
